package com.uniview.locator;

import com.google.common.collect.Lists;
import com.uniview.event.RemoteRefreshRouteEvent;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.ApplicationListener;

import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * @Author lux
 * @date: 2020/1/2
 * @desc: 资源加载器
 */
@Slf4j
public class ResourceLocator implements ApplicationListener<RemoteRefreshRouteEvent> {

    @Override
    public void onApplicationEvent(RemoteRefreshRouteEvent remoteRefreshRouteEvent) {
        System.out.println(remoteRefreshRouteEvent.getMessage());
    }
}
